#pragma once

extern "C" {
 	#include <lua.h>
 	#include <lualib.h>
 	#include <lauxlib.h>
}

#include "../game/DialogModel.h"
#include "../gui/MDialogBox.h"
#include "LUA_Component.h"
/**
==================================
Pop open the dialog box
==================================
*/
class LUA_Dialog : public LUA_Component
{
public:
    LUA_Dialog( lua_State *L );

    ///** Open a new dialog */
    //static int Create( lua_State *L );
    ///** Clear the current dialog */
    //static int Clear( lua_State *L );
    ///** Set the current Text */
    //static int SetText( lua_State *L );
    ///** Load a Dialog file */
    //static int LoadDialog( lua_State *L );

    //** Open a new dialog */
    int Create( lua_State *L );
    /** Set Title */
    int SetTitle( lua_State *L );
    /** Clear the current dialog */
    int Clear( lua_State *L );
    /** Set the current Text */
    int SetText( lua_State *L );
    /** Load a Dialog file */
    int LoadDialog( lua_State *L );

    //static const luaL_reg methods[];
    static const char className[];
    static       Lunar<LUA_Dialog>::RegType methods[];
private:
    //static MDialogBox* m_box;
public:
    virtual ~LUA_Dialog(void);
};
